//
//  UINavigationController+Utils.m
//  PanoTrip
//
//  Created by 建强 孙 on 14-1-27.
//  Copyright (c) 2014年 建强 孙. All rights reserved.
//

#import "UINavigationController+Utils.h"


@implementation UINavigationController (Util)

-(BOOL)shouldAutorotate
{
    return [self.topViewController shouldAutorotate];
}

-(NSUInteger)supportedInterfaceOrientations
{
    return [self.topViewController supportedInterfaceOrientations];
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return [self.topViewController preferredInterfaceOrientationForPresentation];
}
- (UIViewController *)childViewControllerForStatusBarStyle{
    return self.topViewController;
}

@end
